package com.jiuyue.demo.entity;

import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Document(indexName = "externaluser", shards = 3, replicas = 1)
public class ExternalUser {
	@Id
    private Integer id;
	@Field(type =FieldType.Object)
	private ExternalContact externalContact;
	@Field(type =FieldType.Object)
	private List<ExternalContactFollow> externalContactFollowList;
	@Field(type =FieldType.Object)
	private List<ExternalContactFollowTag> externalContactFollowTagsList;

	
	
}
